{extend name="common/add"}
{block name="form"}
<article class="page-container">
    <form action="{:str_replace('id',$user->user_id,url('/users/id'))}" method="post" enctype="multipart/form-data" class="form form-horizontal" id="form-member-add">

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">会员姓名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$user->user_name}" autocomplete="off" placeholder="user_name" id="user_name" name="user_name">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">会员等级：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="mt-20 skin-minimal" style="margin-top: 0px">

                    {foreach $members as $member}
                    {if $member->member_id == $user->user_type}
                    <div class="radio-box">
                        <input type="radio" value="{$member->member_id}" id="radio-8" name="user_type" checked>
                        <label for="radio-8">{$member->member_name}</label>
                    </div>
                    {else /}
                    <div class="radio-box">
                        <input type="radio" value="{$member->member_id}" id="radio-8" name="user_type">
                        <label for="radio-8">{$member->member_name}</label>
                    </div>
                    {/if}
                    {/foreach}

                </div>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">是否认证：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="mt-20 skin-minimal" style="margin-top: 0px">
                    {if $user->is_auth == 2}
                    <div class="radio-box">
                        <input type="radio" value="2"  name="is_auth" checked>
                        <label for="radio-8">已认证</label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" value="0" name="is_auth">
                        <label for="radio-8">未认证</label>
                    </div>
                    {else /}
                    <div class="radio-box">
                        <input type="radio" value="2"  name="is_auth" >
                        <label for="radio-8">已认证</label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" value="0" name="is_auth" checked>
                        <label for="radio-8">未认证</label>
                    </div>
                    {/if}
                </div>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">是否交纳保证金：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="mt-20 skin-minimal" style="margin-top: 0px">
                    {if $user->is_bond == 2}
                    <div class="radio-box">
                        <input type="radio" value="2"  name="is_bond" checked>
                        <label for="radio-8">已交纳</label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" value="1" name="is_bond">
                        <label for="radio-8">未交纳</label>
                    </div>
                    {else /}
                    <div class="radio-box">
                        <input type="radio" value="2"  name="is_bond" >
                        <label for="radio-8">已交纳</label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" value="1" name="is_bond" checked>
                        <label for="radio-8">未交纳</label>
                    </div>
                    {/if}
                </div>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">是否短信验证：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="mt-20 skin-minimal" style="margin-top: 0px">
                    {if $user->is_sms == 1}
                    <div class="radio-box">
                        <input type="radio" value="1"  name="is_sms" checked>
                        <label for="radio-8">已验证</label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" value="0" name="is_sms">
                        <label for="radio-8">未验证</label>
                    </div>
                    {else /}
                    <div class="radio-box">
                        <input type="radio" value="1"  name="is_sms" >
                        <label for="radio-8">已验证</label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" value="0" name="is_sms" checked>
                        <label for="radio-8">未验证</label>
                    </div>
                    {/if}
                </div>
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">用户类型：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="mt-20 skin-minimal" style="margin-top: 0px">
                    {if $user->is_true == 0}
                        <div class="radio-box">
                            <input type="radio" value="0"  name="is_true" checked>
                            <label for="radio-8">真实账户</label>
                        </div>
                        <div class="radio-box">
                            <input type="radio" value="1" name="is_true">
                            <label for="radio-8">首页置顶</label>
                        </div>
                        <div class="radio-box">
                            <input type="radio" value="2" name="is_true">
                            <label for="radio-8">分类置顶</label>
                        </div>
                    {elseif $user->is_true == 1}
                        <div class="radio-box">
                            <input type="radio" value="0"  name="is_true" >
                            <label for="radio-8">真实账户</label>
                        </div>
                        <div class="radio-box">
                            <input type="radio" value="1" name="is_true" checked>
                            <label for="radio-8">首页置顶</label>
                        </div>
                        <div class="radio-box">
                            <input type="radio" value="2" name="is_true">
                            <label for="radio-8">分类置顶</label>
                        </div>
                    {else /}
                        <div class="radio-box">
                            <input type="radio" value="0"  name="is_true" >
                            <label for="radio-8">真实账户</label>
                        </div>
                        <div class="radio-box">
                            <input type="radio" value="1" name="is_true" >
                            <label for="radio-8">首页置顶</label>
                        </div>
                        <div class="radio-box">
                            <input type="radio" value="2" name="is_true" checked>
                            <label for="radio-8">分类置顶</label>
                        </div>
                    {/if}
                </div>
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">会员手机号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$user->user_tel}" autocomplete="off" placeholder="user_tel" id="user_tel" name="user_tel">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">会员微信号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" disabled value="{$user->we_chat_name}" autocomplete="off" placeholder="we_chat_name" id="we_chat_name" name=we_chat_name"">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">会员真实姓名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$user->real_name}" autocomplete="off" placeholder="real_name" id="real_name" name="real_name">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">会员地址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$user->user_address}" autocomplete="off" placeholder="user_address" id="user_address" name="user_address">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">会员身份证：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$user->user_card}" autocomplete="off" placeholder="user_card" id="user_card" name="user_card">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">认证支付截图：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <img src="__UPL__/{$user->auth_user_card_img}" alt="" style="width: 300px; height: 200px;">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">身份证正面：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <img src="__UPL__/{$user->user_card_front_img}" alt="" style="width: 300px; height: 200px;">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">身份证背面：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <img src="__UPL__/{$user->user_card_after_img}" alt="" style="width: 300px; height: 200px;">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">手持身份证：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <img src="__UPL__/{$user->user_card_hand_img}" alt="" style="width: 300px; height: 200px;">
            </div>
        </div>




        <input type="hidden" name="_method" value="put" />


        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
{/block}


{block name="js"}{/block}